﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Business_Layer;

namespace Control_Layer
{
    // See UseCase:
    // UCD00-ADDITIONS (03)
    public class CCAddPicture
    {
        private Service service;
        private Project project;

        public CCAddPicture()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Add a picture to the current mindmap.
        /// </summary>
        /// <param name="sx">The X Coordinate to start the picture.</param>
        /// <param name="sy">The Y Coordinate to start the picture.</param>
        /// <param name="ex">The X Coordinate to end the picture.</param>
        /// <param name="ey">The Y Coordinate to end the picture.</param>
        /// <param name="text">The pictures name.</param>
        /// <param name="picture">A bitmap to draw in the selected area.</param>
        public void Add(int sx, int sy, int ex, int ey, string text, Bitmap picture)
        {
            project.AddComponent(TypeComponent.Picture, sx, sy, ex, ey, text, picture);
        }
    }
}
